<div ng-init="$ctrl.init()">
    <a ng-if="$ctrl.isImage" style="cursor: pointer;" ng-click="$ctrl.showImage()" ng-if="$ctrl.imgSrc">
        <img class="rounded" height="{{$ctrl.imgHeight}}" ng-src="{{$ctrl.imgSrc}}">
    </a>
    <a ng-if="!$ctrl.isImage && $ctrl.imgSrc" href="{{$ctrl.imgSrc}}" target="_blank">View</a>
</div>
